package com.hc.fdkgoods.dao;


import com.hc.fdkgoods.vo.ShopIdVO;
import org.springframework.stereotype.Repository;

import java.util.List;

import static com.hc.fdkgoods.db.tables.SysShop.SYS_SHOP;

@Repository
public class ShopWebNameListDao extends BaseDao {

    public List<ShopIdVO> getListName() {
        return db.select(
                SYS_SHOP.ID.as("shopId"),
                SYS_SHOP.SHOP_NAME)
                .from(SYS_SHOP)
                .where(SYS_SHOP.MERCHANT_ID.eq(merchantId()))
                .fetchInto(ShopIdVO.class);

    }
}
